<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
    <script src="../js/one.js"></script>
</head>
<body onload="check_cookies()">
<script>
    document.write(Date());
</script>

<p id="p1">Hello World!</p>
<script>
    document.getElementById("p1").innerHTML = "New Text!";
</script>

<p id="qiusen">qiusen ni hao q!</p>
<script>
    document.getElementById("qiusen").style.color = "blue";
</script>
<button type="button" onclick="document.getElementById('qiusen').style.color='red'">点击这里</button>
<button type="button" onclick="document.getElementById('qiusen').style.visibility='hidden'">隐藏</button>

<br>
<h1 onclick="change_txt(this)">请点击该文本</h1>

<p>提示框会告诉你，浏览器是否已启用 cookie。</p>

请输入英文字符：<input type="text" id="fname" onchange="toUpperCase()">
<p>当您离开输入字段时，会触发将输入文本转换为大写的函数。</p>

<div id="div1">
    <p id="p1">这是一个段落</p>
    <p id="p2">这是另一个段落</p>
</div>
<script>
    var para = document.createElement("p");
    var node = document.createTextNode("这是新段落。");
    para.appendChild(node);

    var element = document.getElementById("div1");
    element.appendChild(para);
</script>

<div id="div11">
    <p id="p11">这是一个段落。</p>
    <p id="p22">这是另一个段落。</p>
</div>
<script>
    var parent = document.getElementById("div11");
    var child = document.getElementById("p11");
    parent.removeChild(child);
</script>
</body>
</html>